#ifndef  __ZeroMessage_H__
#define  __ZeroMessage_H__

#include "ZeroMutex.h"

class ZeroMessage {
public:
	ZeroMessage();
	~ZeroMessage();

	int getMessage();
	void postMessage(int msg);
	bool isEmpty();
private:
	int *mMsg;
	int mMsgHead, mMsgTail, mMsgCapacity;
	ZeroMutex *mMutex;
};

#endif /*__ZeroMessage_H__*/
